package com.chl.tools;

public class DocCheckResult {
	
	
	public static DocCheckResult CHECK_FILE_UNKNOWN_FILE_TYPE = new  DocCheckResult(400,"非法的文件类型!");
	
	public static DocCheckResult CHECK_FILE_UNSUPPORT_FILE = new  DocCheckResult(401,"不是doc或者docx格式的文档!");
	
	public static DocCheckResult CHECK_FILE_ERROR = new  DocCheckResult(500,"文档检查失败，未知异常!");
	
	public static DocCheckResult CHECK_FILE_ILLEGE_FILE = new  DocCheckResult(300,"文件中，不能有其他的视频、文档等资源内容!");
	
	public static DocCheckResult CHECK_FILE_SUCCESS = new  DocCheckResult(200,"文档检查通过!");


	/**
	 * 类型
	 */
	private int type;

	/**
	 * 消息
	 */
	private String msg;
	
	
	/**
	 * 文档检测结果
	 * @param type
	 * @param msg
	 */
	public DocCheckResult(int type, String msg) {
		super();
		this.type = type;
		this.msg = msg;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
